<?php

namespace App\Http\Resources;

use Illuminate\Http\Resources\Json\Resource;

class Finance extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request $request
     * @return array
     */
    public function toArray($request)
    {  	   	
        return [
        	'id' => $this->id,
        	'company_name' => $this->company_name,
        	'company_type' => $this->company_type,
        	'address' => $this->address,
        	'company_count' => 300,
        	'balance' => $this->balance,
        	'company_state'=> 2,
        	'create_date' => $this->create_date   
        ];
    }
}
